package com.sc.nft.entity.vo.mall;


import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

@Data
public class RefundInfoVO {


    @ApiModelProperty(value = "订单id")
    private Long orderId;

    @ApiModelProperty(value = "订单商品id")
    private Long orderProductId;

    @ApiModelProperty(value = "最大退款数量")
    private Integer maxCount;

    @ApiModelProperty(value = "退款金额(默认数量为1件)")
    private String refundPrice;

    @ApiModelProperty(value = "退款类型")
    private List<OrderRefundTypeVO> orderRefundTypeList;

    @ApiModelProperty(value = "退款原因")
    private List<RefundReasonVO> refundReasonList;


    public void setRefundPrice(BigDecimal refundPrice) {
        this.refundPrice = refundPrice.setScale(2,BigDecimal.ROUND_DOWN).toPlainString();
    }
}
